home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / fortify.lha / ztest.cpp < prev   
Encoding:
C/C++ Source or Header  |  1995-02-03  |  191 b   |  17 lines

  1. #include <iostream.h>
  2.  
  3. #include "zfortify.hpp"
  4.  
  5. void
  6. main(int argc, char **argv)
  7. {
  8.     char *foo = new char[123];
  9.  
  10.     foo = new char[56];
  11.  
  12.     foo[56] = 'a';
  13.     foo[-1] = '!';
  14.     
  15.     delete[] foo;
  16. }
  17.